
package org.shanktech.tshare.binlogsync.process.parser.object;

import org.shanktech.tshare.binlogsync.dao.version1.model.generated.UserInfo;
import org.shanktech.tshare.binlogsync.process.parser.ObjectParser;

import com.google.code.or.common.glossary.Column;

public class UserInfoParser extends ObjectParser {

  @Override
  public Object columnValueProcess(String name, Object value) {
    Object result = null;
    if (value instanceof Column) {
      
    } else {
      switch (name) {
        case "id":
          result = Integer.valueOf((String)value);
          break;
        default:
          result = (String)value;
          break;
      }
    }
    return result;
  }

  @Override
  public Class<UserInfo> getClassObject() {
    // TODO Auto-generated method stub
    return UserInfo.class;
  }

  @Override
  public Object getInstance() {
    // TODO Auto-generated method stub
    return new UserInfo();
  }



}
